;;
;; @file    le-emacs-shell.el
;; @author  Gan XiangLe
;; @created 2011/11/01
;; @brief   Config the shell mode in Emacs on Windows.
;;          by default, shell mode is just a cmd.exe wrapper.
;;          But i'll use zsh(win32 native zsh) instead
;; @see     zsh for windows:  http://zsh-nt.sourceforge.net/         
;; @usage
;;   [zsh]
;;     (1) download zsh for windows(winzsh*.tar.7z)
;;     (2) unpack it, there is several dir under it(bin/, usr/)
;;     (3) copy winzsh/bin/zsh.exe, winzsh/bin/man(a script implements
;;         'man' command in UNIX) , under $PATH, for example
;;         'D:Program Files/emacs-23.3/Utils/winzsh/bin'.
;;     (4) The documentation have 3 format, which is under
;;         winzsh/usr/info, winzsh/usr/man, and winzsh/usr/doc.
;;         copy it to some where.
;;     (5) Set $HOME for zsh config file, the sample config is
;;         under winzsh/etc, copy it to $HOME/.zshrc, $HOME/.zshenv.
;;     (6) $ZSHROOT to */winzsh/.If you type /bin/zsh,
;;         it will search
;;         1. /bin/zsh
;;         2. /bin/zsh.exe
;;         3. $ZSHROOT/bin/zsh
;;         4. $ZSHROOT/bin/zsh.exe
;;         in order.
;;     (7) Add $ZSHROOT/bin to $PATH

;; solve shell mode ls problem.
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)

;; default to open %SystemRoot%\system32\cmd.exe, but i want
;; to use zsh.exe 
;(setq shell-file-name "sh.exe")


